<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title>安全专业三同时</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript">
        var safeAcceptance=false;
        var safeCommissioning=false;
        var safeDesign=false;
        var safeFSD=false;
        <c:if test="${safeAcceptance==null}">
        safeAcceptance=true;
        </c:if>
        <c:if test="${safeCommissioning==null}">
        safeCommissioning=true;
        </c:if>
        <c:if test="${safeDesign==null}">
        safeDesign=true;
        </c:if>
        <c:if test="${safeFSD==null}">
        safeFSD=true;
        </c:if>
    </script>
    <script type="text/javascript" src="${ctx}/resources/js/threeSimultaneities/safe/info.js"></script>

    <style>
        .enclosure {
            width: 900px;
            float: left;
            margin-bottom: 10px;
            margin-top: 5px;
        }

        .form_one {
            width: 350px;
        }

        .lable-accessory {
            display: block;
            float: left;
            width: 75px;
            pxmargin-top: 10px;
            padding-left: 10px;
            text-align: right;
            margin-top: 10px;
        }

        .l-btn {
            background: #97f0ed;
        }
    </style>
</head>
<body>
<form id="projectInfo" method="POST">
    <div class="information">
        <div class="information-title">
            <p>项目基本信息</p>
            <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
        </div>
        <div class="cuttle">
            <input type="hidden" id="projectApprovalId" name="id" value="${projectApproval.id}"/>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">项目名称:</label>
                    <input id="projectName" name="projectName" type="text" class="easyui-textbox" style="width: 240px;"
                           data-options="readonly:true" value="${projectApproval.projectName}">
                    <input type="hidden" id="projectId" name="projectId" style="width: 240px;"
                           value="${projectApproval.projectId}">
                </div>
                <div class="form_one">
                    <label class="lable-style">项目级别:</label>
                    <input id="projectLevel" name="projectLevel" type="text" class="easyui-textbox"
                           style="width: 240px;" data-options="readonly:true" value="${projectApproval.projectLevel}">
                </div>
                <div class="form_one">
                    <label class="lable-style">监管级别:</label>
                    <input id="supervisionLevel" name="supervisionLevel" type="text" class="easyui-textbox"
                           style="width: 240px;" data-options="readonly:true"
                           value="${projectApproval.supervisionLevel}">
                </div>
            </div>
            <div class="district-wrap" style="clear: both">
                <div class="form_one">
                    <label class="lable-style">所属部门:</label>
                    <input id="deptName" name="deptName" type="text" class="easyui-textbox " style="width: 240px;"
                           data-options="readonly:true" value=" ${projectApproval.deptName}">
                </div>
                <div class="form_one">
                    <label class="lable-style">项目类别:</label>
                    <input id="projectType" name="projectType" type="text" class="easyui-textbox " style="width: 240px;"
                           data-options="readonly:true" value="${projectApproval.projectType}">
                </div>
                <div class="form_one">
                    <label class="lable-style">投资额度:</label>
                    <input id="investQuota" name="investQuota" type="text" class="easyui-textbox  "
                           style="width: 240px;" data-options="readonly:true" value="${projectApproval.investQuota}">
                </div>
            </div>
            <div class="district-wrap" style="clear: both">
                <div class="form_one">
                    <label class="lable-style">可研批复日期:</label>
                    <input id="feasibilityTime" name="feasibilityTime" class="easyui-textbox" style="width: 240px;"
                           data-options="readonly:true" value="${projectApproval.feasibilityTime}">
                </div>
                <div class="form_one">
                    <label class="lable-style">涉及专业:</label>
                    <input id="querySpecialtye" name="specialtyId" type="text" class="easyui-textbox "
                           style="width: 240px;" data-options="readonly:true" value="${SpecialtyList}">
                </div>
                <div class="form_one">
                    <label class="lable-style">当前状态:</label>
                    <input id="queryOperationState" name="operationStateId" type="text" class="easyui-textbox "
                           style="width: 240px;" data-options="readonly:true"
                           value="${projectApproval.operationStateId}">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two">
                    <label class="lable-style">停止原因:</label>
                    <input id="stoppageReasons" name="stoppageReasons" type="text" class="easyui-textbox"
                           data-options="multiline:true,readonly:true" style="height: 60px;width: 590px;"
                           value="${projectApproval.stoppageReasons}"/>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>委托函信息</p>
            <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">发函机构:</label>
                    <input id="entrustUnit" name="entrustUnit" type="text" class="easyui-textbox" style="width: 240px;"
                           data-options="readonly:true" value="${projectApproval.entrustUnit}">
                </div>
                <div class="form_one">
                    <label class="lable-style">发函日期:</label>
                    <input id="entrustTime" name="entrustTime" class="easyui-textbox" style="width: 240px;"
                           data-options="readonly:true" value="${projectApproval.entrustUnit}">
                </div>
                <div class="form_one">
                    <label class="lable-style">函文文号:</label>
                    <input id="entrustFileCode" name="entrustFileCode" type="text" class="easyui-textbox"
                           style="width: 240px;" data-options="readonly:true"
                           value="${projectApproval.entrustFileCode}">
                </div>
            </div>
            <div class="district-wrap" style="clear: both">
                <label class="lable-accessory">函文文件:</label>
                <accessory:accessorySimple permission="" packageKey="project_entrust" uploadUserId="${loginUser.id}"
                                           packageInfos="${proAccessoryList}"
                                           accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
            </div>
        </div>
    </div>
</form>
<div class="information">
    <div class="information-title">
        <p>阶段信息</p>
        <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
    </div>
    <div class="cuttle" style="">
        <div id="ttS" class="easyui-tabs" style="width:1110px;justified:true;fit:true;margin-bottom: 10px;height: 900px">
            <div id="fsd" title="可研阶段" style="padding:10px;height: 95%;">
                <div class="easyui-layout" data-options="fit:true">
                    <form id="safeFSD" method="POST">
                        <div style="width:1090px;">
                            <fieldset style="border: 1px solid #B5B5B5;">
                                <legend>安全预评价信息</legend>
                                <div>
                                    <div class="form_one">
                                        <label class="lable-style">评价单位:</label>
                                        <input id="fsd_prejudgeUnit" name="prejudgeUnit" type="text"
                                               class="easyui-textbox"
                                               data-options="readonly:true" style="width: 200px;"
                                               value="${safeFSD.prejudgeUnit}">
                                    </div>
                                    <div class="form_one">
                                        <label class="lable-style">编制日期:</label>
                                        <input id="fsd_prejudgeTime" name="prejudgeTime" type="text"
                                               class="easyui-datebox"
                                               style="width: 200px;" data-options="readonly:true"
                                               value="${safeFSD.prejudgeTime}">
                                    </div>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">评价报告:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_FSD_1"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">相关文件:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_FSD_2"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                            </fieldset>
                            <fieldset style="border: 1px solid #B5B5B5;">
                                <legend>安全预评价内部评审</legend>
                                <div style="clear: both">
                                    <div class="form_one">
                                        <label class="lable-style">审查单位:</label>
                                        <input id="fsd_censorUnit" name="censorUnit" type="text" class="easyui-textbox" data-options="readonly:true"
                                               style="width: 200px;" value="${safeFSD.censorUnit}">
                                    </div>
                                    <div class="form_one">
                                        <label class="lable-style">审查时间:</label>
                                        <input id="fsd_censorTime" name="censorTime" type="text" class="easyui-datebox" data-options="readonly:true"
                                               data-options="editable:false"
                                               style="width: 200px;" value="${safeFSD.censorTime}">
                                    </div>
                                    <div class="form_one">
                                        <label class="lable-style">审查人员:</label>
                                        <input id="fsd_censors" name="censors" type="text" class="easyui-textbox" data-options="readonly:true"
                                               style="width: 200px;" value="${safeFSD.censors}">
                                    </div>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">评审意见:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_FSD_3"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                            </fieldset>
                            <fieldset style="border: 1px solid #B5B5B5;">
                                <legend>是否需要政府审批</legend>
                                <div style="clear: both">
                                    <div class="form_one">
                                        <label class="lable-style">备案机构:</label>
                                        <input id="fsd_registerUnit" name="registerUnit" type="text" data-options="readonly:true"
                                               class="easyui-textbox"
                                               style="width: 200px;" value="${safeFSD.registerUnit}">
                                    </div>
                                    <div class="form_one">
                                        <label class="lable-style">备案时间:</label>
                                        <input id="fsd_registerTime" name="registerTime" type="text"
                                               class="easyui-datebox" data-options="readonly:true"
                                               style="width: 200px;" value="${safeFSD.registerTime}">
                                    </div>
                                    <div class="form_one">
                                        <label class="lable-style">备案文件文号:</label>
                                        <input id="fsd_registerFileCode" name="registerFileCode" type="text"
                                               class="easyui-textbox" style="width: 200px;" data-options="readonly:true"
                                               value="${safeFSD.registerFileCode}">
                                    </div>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">备案文件:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_FSD_4"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                            </fieldset>
                        </div>
                    </form>
                </div>
            </div>
            <div title="基础设计阶段" <c:if test="${safeFSD==null}"> data-options="disabled:true" </c:if> style="padding:10px;height: 95%;">
                <div class="easyui-layout" data-options="fit:true">
                    <form id="safeDesign" method="POST">
                        <div style="width:1090px;">
                            <fieldset style="border: 1px solid #B5B5B5;">
                                <legend>安全设施设计文件</legend>
                                <div>
                                    <div class="form_one">
                                        <label class="lable-style">设计单位:</label>
                                        <input id="design_designer" name="designer" type="text" class="easyui-textbox"
                                               data-options="readonly:true" style="width: 200px;"
                                               value="${safeDesign.designerName}">
                                        <input id="design_designerId" name="designerId" type="hidden"
                                               value="${safeDesign.designerId}">
                                    </div>
                                    <div class="form_one">
                                        <label class="lable-style">编制日期:</label>
                                        <input id="design_designTime" name="designTime" type="text"
                                               class="easyui-datebox"
                                               style="width: 200px;" data-options="readonly:true"
                                               value="${safeDesign.designTime}">
                                    </div>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">设计文件:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_design_1"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">设计审查表:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_design_2"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                            </fieldset>
                            <fieldset style="border: 1px solid #B5B5B5;">
                                <legend>安全设施设计评审</legend>
                                <div style="clear: both">
                                    <div class="form_one">
                                        <label class="lable-style">审查单位:</label>
                                        <input id="design_censorUnit" name="censorUnit" type="text"
                                               class="easyui-textbox" data-options="readonly:true"
                                               style="width: 200px;" value="${safeDesign.censorUnit}">
                                    </div>
                                    <div class="form_one">
                                        <label class="lable-style">审查时间:</label>
                                        <input id="design_censorTime" name="censorTime" type="text"
                                               class="easyui-datebox" data-options="readonly:true"
                                               style="width: 200px;"
                                               value="${safeDesign.censorTime}">
                                    </div>
                                    <div class="form_one">
                                        <label class="lable-style">审查人员:</label>
                                        <input id="design_censors" name="censors" type="text" class="easyui-textbox" data-options="readonly:true"
                                               style="width: 200px;" value="${safeDesign.censors}">
                                    </div>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">评审意见:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_design_3"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                            </fieldset>
                            <fieldset style="border: 1px solid #B5B5B5;">
                                <legend>是否需要政府审批</legend>
                                <div style="clear: both">
                                    <div class="form_one">
                                        <label class="lable-style">备案机构:</label>
                                        <input id="design_registerUnit" name="registerUnit" type="text"
                                               class="easyui-textbox" data-options="readonly:true"
                                               style="width: 200px;" value="${safeDesign.registerUnit}">
                                    </div>
                                    <div class="form_one">
                                        <label class="lable-style">备案时间:</label>
                                        <input id="design_registerTime" name="registerTime" type="text"
                                               class="easyui-datebox" style="width: 200px;"
                                               data-options="readonly:true"
                                               value="${safeDesign.registerTime}">
                                    </div>
                                    <div class="form_one">
                                        <label class="lable-style">备案文件文号:</label>
                                        <input id="design_registerFileCode" name="registerFileCode" type="text"
                                               class="easyui-textbox" style="width: 200px;" data-options="readonly:true"
                                               value="${safeDesign.registerFileCode}">
                                    </div>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">备案文件:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_design_4"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                            </fieldset>
                        </div>
                    </form>
                </div>
            </div>
            <div title="试运行阶段" <c:if test="${safeDesign==null}"> data-options="disabled:true" </c:if>  style="padding:10px;height: 95%;">
                <div class="easyui-layout" data-options="fit:true">
                    <form id="safeCommissioning" method="POST">
                        <div style="width:1090px;">
                            <fieldset style="border: 1px solid #B5B5B5;">
                                <legend>企业评审信息</legend>
                                <div>
                                    <div class="form_one">
                                        <label class="lable-style">方案编制单位:</label>
                                        <input id="comm_compileUnit" name="compileUnit" type="text"
                                               class="easyui-textbox"
                                               style="width: 200px;" data-options="readonly:true"
                                               value="${safeCommissioning.compileUnit}">
                                    </div>
                                    <div class="form_one">
                                        <label class="lable-style">文档编制日期:</label>
                                        <input id="comm_compileTime" name="compileTime" type="text"
                                               class="easyui-datebox"
                                               style="width: 200px;" data-options="readonly:true"
                                               value="${safeCommissioning.compileTime}">
                                    </div>
                                </div>
                                <div style="clear: both">
                                    <div class="form_one">
                                        <label class="lable-style">审查单位:</label>
                                        <input id="comm_censorUnit" name="censorUnit" type="text" class="easyui-textbox"
                                               data-options="readonly:true" style="width: 200px;"
                                               value="${safeCommissioning.censorUnit}">
                                    </div>
                                    <div class="form_one">
                                        <label class="lable-style">审查时间:</label>
                                        <input id="comm_censorTime" name="censorTime" type="text" class="easyui-datebox"
                                               style="width: 200px;" data-options="readonly:true"
                                               value="${safeCommissioning.censorTime}">
                                    </div>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">试生产方案:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_COMM_1"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">审查意见:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_COMM_2"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">投料安全检查情况:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_COMM_3"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                            </fieldset>
                            <fieldset style="border: 1px solid #B5B5B5;">
                                <legend>试生产延期信息</legend>
                                <div style="clear: both">
                                    <div class="form_one">
                                        <label class="lable-style">是否延期:</label>
                                        <select id="comm_isDelayed" name="isDelayed" class="easyui-combobox "
                                                style="width: 200px;"
                                                data-options="readonly:true,editable:false,value:${empty safeCommissioning.isDelayed? 0:safeCommissioning.isDelayed}">
                                            <option value="1">是</option>
                                            <option value="0">否</option>
                                        </select>
                                    </div>
                                    <div class="form_one">
                                        <label class="lable-style">延期截止日期:</label>
                                        <input id="comm_delayedTime" name="delayedTime" type="text"
                                               data-options="readonly:true"
                                               class="easyui-datebox" style="width: 200px;"
                                               value="${safeCommissioning.delayedTime}">
                                    </div>
                                </div>
                                <div style="clear: both">
                                    <div class="form_two">
                                        <label class="lable-style">延期原因:</label>
                                        <input id="comm_delayedResions" name="delayedResions" type="text"
                                               class="easyui-textbox"
                                               data-options="multiline:true,readonly:true" style="height: 60px;width: 600px;"
                                               value="${safeCommissioning.delayedResions}"/>
                                    </div>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">延期批复文件:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_COMM_4"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                            </fieldset>
                        </div>
                    </form>
                </div>
            </div>
            <div title="验收阶段"  <c:if test="${safeCommissioning==null}"> data-options="disabled:true" </c:if>  style="padding:10px;height: 95%;">
                <div class="easyui-layout" data-options="fit:true">
                    <form id="safeAcceptance" method="POST">
                        <div style="width:1090px;">
                            <fieldset style="border: 1px solid #B5B5B5;">
                                <legend>企业安全设施竣工验收</legend>
                                <div style="clear: both">
                                    <div class="form_one" >
                                        <label class="lable-style">验收评价单位:</label>
                                        <input name="evaluationUnit" type="text" class="easyui-textbox" value="${safeAcceptance.evaluationUnit}"
                                               data-options="readonly:true" style="width: 200px;">
                                    </div>
                                    <div class="form_one" >
                                        <label class="lable-style">验收组织单位:</label>
                                        <input name="unitanizeUnit" type="text" class="easyui-textbox" value="${safeAcceptance.unitanizeUnit}"
                                               data-options="readonly:true" style="width: 200px;">
                                    </div>
                                    <div class="form_one">
                                        <label class="lable-style">验收时间:</label>
                                        <input name="acceptanceTime" type="text" class="easyui-datebox" value="${safeAcceptance.acceptanceTime}"
                                               data-options="readonly:true"
                                               style="width: 200px;">
                                    </div>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">验收评价报告:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_accept_1"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">验收组名单:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_accept_2"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">专家评审意见:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_accept_3"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">竣工验收意见:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_accept_4"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                                <div class="district-wrap" style="clear: both">
                                    <label class="lable-accessory">其它附件:</label>
                                    <accessory:accessorySimple permission="" packageKey="safe_accept_5"
                                                               uploadUserId="${loginUser.id}"
                                                               packageInfos="${safeAccessoryList}"
                                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                                </div>
                            </fieldset>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>

